package com.leexuan.ordersystem.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class OrderForm extends ActionForm {

	private String date;

	private String ddate;

	private int dtype;

	private int aid;

	private int cid;

	private int oid;

	private float sum;

	public OrderForm() {
		super();
	}

	public void reset(ActionMapping mapping, HttpServletRequest request) {

		this.date = null;
		this.ddate = null;
		this.dtype = 0;
		this.aid = 0;
		this.cid = 0;
		this.oid = 0;
		this.sum = 0;
	}

	/** --------------getter----------------------- */
	public String getDate() {
		return this.date;
	}

	public String getDdate() {
		return this.ddate;
	}

	public int getDtype() {
		return this.dtype;
	}

	public int getAid() {
		return this.aid;
	}

	public int getCid() {
		return this.cid;
	}

	public int getOid() {
		return this.oid;
	}

	public float getSum() {
		return this.sum;
	}

	/** --------------setter----------------------------- */
	public void setDate(String date) {
		this.date = date;
	}

	public void setDdate(String ddate) {
		this.ddate = ddate;
	}

	public void setDtype(int dtype) {
		this.dtype = dtype;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public void setOid(int oid) {
		this.oid = oid;
	}

	public void setSum(float sum) {
		this.sum = sum;
	}

}
